namespace 多任务并行
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }

        public static void ST1out() 
        {
            
            Class1.int13 = Class1.int12 + Class1.int11;
        }

        public static void ST2out() => Class1.int23 = Class1.int22 + Class1.int21;


        private void button1_Click(object sender, EventArgs e)
        {
            Class1.int12 = Convert.ToInt16(textBox1.Text);
            label1.Text=Class1.int13.ToString();
                Parallel.Invoke(ST1out, ST2out);
            
        }
    }
}

